import { useEffect } from "react"

function DemoUseEffect(){
    useEffect(()=>{
        async function getList(){
            const res = await fetch(URL)
            const data = await res.json()
            console.log(data)
        }
        getList()
    },[])
    const URL = 'http://geek.itheima.net/v1_0/channels'
    return (
        <div>this is Demo</div>
    )
    
}
export default DemoUseEffect